package com.example.redis.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.autoconfigure.data.redis.RedisProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Primary;
import org.springframework.data.redis.connection.RedisNode;
import org.springframework.stereotype.Component;
import java.util.List;

@Data
@ConfigurationProperties(prefix = "spring.redis")
public class RedisExtendProperties {
    //可以定义一个从服务器群。RedisNode的注解爆红，没法用
    List<String> slaves;


}
